import request from '@/utils/request'

// 查询审批记录列表
export function listApprovalRecord(query) {
  return request({
    url: '/module/approvalRecord/list',
    method: 'get',
    params: query
  })
}

// 查询审批记录详细
export function getApprovalRecord(id) {
  return request({
    url: '/module/approvalRecord/' + id,
    method: 'get'
  })
}

// 新增审批记录
export function addApprovalRecord(data) {
  return request({
    url: '/module/approvalRecord',
    method: 'post',
    data: data
  })
}

// 修改审批记录
export function updateApprovalRecord(data) {
  return request({
    url: '/module/approvalRecord',
    method: 'put',
    data: data
  })
}

// 删除审批记录
export function delApprovalRecord(id) {
  return request({
    url: '/module/approvalRecord/' + id,
    method: 'delete'
  })
}
